import request from "@/utils/request"

/**查询cxdz列表 */
export function listCxdz(params) {
  return request({
    url: "/zk/cxdz/list",
    method: "get",
    params:params
  })
}

/**
 * 新增
 * @param {*} data 
 * @returns 
 */
export function addCxdz(data) { 
  return request({
    url: "/zk/cxdz",
    method: "post",
    data:data
  })
}

/**
 * 编辑
 * @param {*} data 
 * @returns 
 */
export function editCxdz(data) { 
  return request({
    url: "/zk/cxdz",
    method: "put",
    data:data
  })
}

/**
 * 批量删除
 * @param {*} nums 
 * @returns 
 */
export function removeCxdz(nums) { 
  return request({
    url: "/zk/cxdz/"+nums,
    method: "delete",
  })
}



export function getCxdzByNum (num) {
  return request({
    url: "/zk/cxdz/" + num,
    method: "get"
  })

}

/**
 * 编辑
 * @param {*} data 
 * @returns 
 */
export function refreshCxdz(data) { 
  return request({
    url: "/zk/cxdz/refresh",
    method: "put",
    data:data
  })
}